package com.highper.gateway;

import com.highper.common.annotation.EnableHighperToolConfigure;
import com.highper.common.annotation.EnableMultiTenantMybatis;
import com.highper.common.annotation.EnableStartBanner;
import com.highper.gateway.balancer.GrayLoadBalancerRule;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @Author ZhangGJ
 * @Date 2022/01/22 15:29
 */
@EnableStartBanner
@EnableMultiTenantMybatis
@EnableHighperToolConfigure
@MapperScan("com.highper.common.mapper")
@RibbonClient(name = "Highper-Application", configuration = GrayLoadBalancerRule.class)
@SpringBootApplication(scanBasePackages = {"com.highper.gateway", "com.highper.common.mapper"})
public class HighperGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(HighperGatewayApplication.class, args);
    }

}
